package com.dsjy.yf.address.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsjy.yf.address.entity.dataobject.CountyDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author whj
 * @version 1.0
 * @date 2021-01-14 14:26
 */
public interface CountyMapper extends BaseMapper<CountyDO> {
    /**
     * 查询表中所有信息
     *
     * @return
     */
    List<CountyDO> searchAll();

    /**
     * 查询区县编码最大值
     *
     * @return
     */
    Integer serchMaxCountyCode();

    /**
     * 新增区县
     *
     * @param countyDO
     * @return
     */
    Integer addCounty(@Param("countyDO") CountyDO countyDO);


    /**
     * 更新区县名,别名
     *
     * @param countyDO
     * @return
     */
    Integer updCounty(@Param("countyDO") CountyDO countyDO);

}
